import request from '@/api/request'
/* 视频分类 */
export const getVideoAlltag = () => request({ url: '/video/category/list', method: 'get' })
// 获取视频标签列表
export const getVideoTagList = () => request({ url: '/video/group/list', method: 'get' })
/* 全部视频列表 */
export const getAllVideo = (offset) => request({ url: '/video/timeline/all', params: { offset }, method: 'get' })
/* 根据标签获取视频列表 */
export const getVideoByTag = ({ id, offset }) => request({ url: '/video/group', params: { id, offset }, method: 'get' })
/* 获取全部MV area limit offset order type*/
export const getAllMv = ({ area, limit, offset, order, type }) => request({ url: '/mv/all', params: { area, limit, offset, order, type }, methos: 'get' })
/* 获取最新MV */
export const getNewMv = ({ area, limit }) => request({ url: '/mv/first', params: { area, limit }, method: 'get' })
/* 获取网易出品Mv */
export const getNetEasyMv = ({ limit, offset }) => request({ url: '/mv/exclusive/rcmd', params: { limit, offset }, method: 'get' })
/* mv 排行 area, limit,offset */
export const getTopMv = ({ area, limit, offset = 0 }) => request({ url: '/top/mv', params: { area, limit, offset }, method: 'get' })
// 获取mv数据
export const getMvDetail = ({ mvid }) => request({ url: '/mv/detail', params: { mvid }, method: 'get' })
// 获取mvurl
export const getMvUrl = ({ id }) => request({ url: '/mv/url', params: { id }, method: 'get' })
// 获取相关视频
export const getReAllvideo = (id) => request({ url: '/related/allvideo', params: { id }, method: 'get' })
// 获取相关mv数据
export const getDetail = (id) => request({ url: '/video/detail', params: { id }, method: 'get' })
// 获取mvurl
export const getVideoUrl = ({ id }) => request({ url: '/video/url', params: { id }, method: 'get' })
